package com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.factory;

import com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.Rectangle;

/**
 * @Description
 * @Author liuzhihui
 * @Date 2024/5/22
 */
public class RectangleFactory implements ShapeFactory<String, Rectangle> {

    @Override
    public Rectangle getShape(String rectangle1) {
        Rectangle rectangle = new Rectangle();
        // 根据入参设置一些东西
        return rectangle;
    }
}
